diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-11 17:56:27 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-11 17:56:27 +0100 |
| commit | 8647197a05490e2c10106a021cf6760bdabb5b2a (patch) | |
| tree | 5fb56fad1c0f585ac063a8f6390e68586e3e6084 /src/pages/article/[slug].tsx | |
| parent | c69c107de84aa3b2cdbf0ed087d0314f22d30b18 (diff) | |
chore: improve accessibility
Diffstat (limited to 'src/pages/article/[slug].tsx')
| -rw-r--r-- | src/pages/article/[slug].tsx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index faf2271..689f123 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -175,7 +175,13 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => { data-prismjs-color-scheme-light={lightTheme} > <PostHeader intro={intro} meta={meta} title={title} /> - <Sidebar position="left"> + <Sidebar + position="left" + ariaLabel={intl.formatMessage({ + defaultMessage: 'Table of Contents', + description: 'ArticlePage: ToC sidebar aria-label', + })} + > <ToC /> </Sidebar> <div @@ -183,7 +189,13 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => { dangerouslySetInnerHTML={{ __html: content }} ></div> <PostFooter topics={topics} /> - <Sidebar position="right"> + <Sidebar + position="right" + ariaLabel={intl.formatMessage({ + defaultMessage: 'Sidebar', + description: 'ArticlePage: right sidebar aria-label', + })} + > <Sharing title={title} excerpt={intro} /> </Sidebar> <section id="comments" className={styles.comments}> |
